package com.wenbo.wenbo.dto;

import lombok.Data;

import java.util.Date;

/**
 * @author ywb
 * @date 2021年12月29日 10:25
 */
@Data
public class GPSDto {
    private String carnumber;
    private String carstate;
    private String direction;
    private long gpstime;
    private String latitue;
    private String longtitue;
    private long sjgxrq;
    private String speed;

    public GPSDto(String carnumber, String carstate, String direction, long gpstime, String latitue, String longtitue, long sjgxrq, String speed) {
        this.carnumber = carnumber;
        this.carstate = carstate;
        this.direction = direction;
        this.gpstime = gpstime;
        this.latitue = latitue;
        this.longtitue = longtitue;
        this.sjgxrq = sjgxrq;
        this.speed = speed;
    }

    public GPSDto() {
    }

    public static void main(String[] args) {
        String carno = "渝ATOY69";
        if (carno.indexOf("挂") > 1) {
            System.out.println("有挂");
        } else {
            System.out.println("没有挂");
        }
    }



}
